
#ifndef ECC_ADAPTER_H
#define ECC_ADAPTER_H

#include "rs-block.h"

C_BEGIN_DECLS

typedef struct _EccAdapter EccAdapter;
struct _EccAdapter
{
	void (* destroy)(EccAdapter* ecc_adapter);
	int (* encode)(EccAdapter* ecc_adapter, RSBlock* rs_block);
};

void ecc_adapter_destroy(EccAdapter* ecc_adapter);
int ecc_adapter_encode(EccAdapter* ecc_adapter, RSBlock* rs_block);

C_END_DECLS

#endif	// ECC_ADAPTER_H

